SIG=signal
KILL=kill
ALARM=alarm
CC=g++
SIG_SRC=signal.cc
KILL_SRC=mykill.cc
ALARM_SRC=alarm.cc
.PHONY: all
all: $(SIG) $(KILL) $(ALARM)
$(SIG): $(SIG_SRC)
	$(CC) -o $(SIG) $(SIG_SRC) -std=c++11
$(KILL): $(KILL_SRC)
	$(CC) -o $(KILL) $(KILL_SRC) -std=c++11
$(ALARM): $(ALARM_SRC)
	$(CC) -o $(ALARM) $(ALARM_SRC) -std=c++11
.PHONY: clean
clean:
	rm -f $(SIG) $(KILL) $(ALARM)